<?php
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
?>  
<!-- 右侧开始--个人基本信息 -->
	<div class="rightArea">
		<div class="screening_box">
        	<div class="page-header">
    			<h1>添加知识点</h1>
                  <?php 
                  if (Yii::$app->session->hasFlash('addknow')) {
                        echo Yii::$app->session->getFlash('addknow');
                        }
                  $form= ActiveForm::begin([
                           'options'=>['class'=>'form-horizontal'],
                          'fieldConfig'=>[
                              'template'=>'<div class="control-label col-sm-3">{label}</div><div class="col-sm-6">{input}</div>'
                          ]
                   ])?>
            	<div class="form_group field-email">
                    <?php echo $form->field($data, 'knowid')->textInput(['class'=>'form-control'])?>             
                </div>
               <div class="form_group field-nikename">
                   <?php echo $form->field($data, 'title')->textInput(['class'=>'form-control'])?> 
                </div>
                 <div class="form_group field-nikename">
                     <?php echo $form->field($data, 'knowcontent')->textInput(['class'=>'form-control'])?> 
                </div>

                 <div class="form_group field-nikename">
                     <?php echo $form->field($data, 'description')->textInput(['class'=>'form-control'])?> 
                </div>
                 <div class="form_group field-nikename">
                     <?php echo $form->field($data, 'keywords')->textInput(['class'=>'form-control'])?> 
                </div>
                <div class="form_group field-nikename">
                    <?php echo $form->field($data, 'language')->textInput(['class'=>'form-control'])?> 
                </div>
                 <div class="form_group field-nikename">
                     <?php echo $form->field($data, 'contribute')->textInput(['class'=>'form-control'])?> 
                </div>
                <div class="form_group field-nikename">
                	<label class="control-label col-sm-3" for="profile-email">分类</label>
                    <div class="col-sm-6 knowclassify-edit">
				<input type="hidden" name="Profile[gender]" value="">
                                <?php echo $form->field($data, 'classifysubject')->dropDownList(['0'=>'--请选择--','数学'=>'数学','物理'=>'物理','化学'=>'化学'], ['class'=>'user-addknow-classify'])?>
                                    <?php echo $form->field($data, 'classifygrade')->dropDownList(['0'=>'--请选择--','一年级'=>'一年级','二年级'=>'二年级','三年级'=>'三年级'], ['class'=>'user-addknow-classify'])?>
                        	
                                <div class="help-block help-block-error "></div>
</div>
                </div>
                <div class="form-group">
                    
    				<div class="col-sm-3"></div>
                                <div class="col-sm-6">
                                    <?php echo Html::submitButton('修改',['class'=>'btn btn-primary'])?>
                                </div>
				</div>
			<?php ActiveForm::end()?>
			</div>
                    
        </div>    	
            
	</div>